import { Global, Module } from '@nestjs/common';
import { RedisModule } from 'nestjs-redis';
import { RedisClientService } from './redis-client/redis-client.service';

@Global()
@Module({
  imports: [
    RedisModule.register({
      port: 6379,
      host: '127.0.0.1',
      password: '',
      db: 0,
    }),
  ],
  providers: [RedisClientService],
  exports: [RedisClientService],
})
export class RedisUtilsModule {}
